home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #1 / Amiga Plus 1995 #1.iso / animationen / retina_fli_ii / test.c < prev    next >
C/C++ Source or Header  |  1994-12-13  |  424b  |  26 lines

  1. /* test.c
  2.    This is to test the decoding capabilities of the FLI/FLC reader */
  3.  
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6.  
  7. #include "xflick.h"
  8.  
  9. verbose = 1;
  10.  
  11. int main(int argc, char *argv[])
  12. {
  13.   struct fli_header crap;
  14.   int fd;
  15.  
  16.   if (argc > 1) {
  17.     fd = open(argv[1], 0);
  18.     if (fd < 0) {
  19.       fprintf(stderr, "Can't open the file %s!\n", argv[1]);
  20.       exit(-1);
  21.     }
  22.     read_flihead(fd, &crap);
  23.     close(fd);
  24.   }
  25. }
  26.